CXX=g++
DEP=../stack_trace/stack_trace.cpp ../compressors/CompressorProcess.cpp instrumentation.cpp ../compressors/Output.cpp
BIN=memoryTraceSeq memoryTraceConcurrent programme_test
all:$(BIN)

memoryTraceSeq:$(DEP)
	$(CXX) -I ../include -I ../stack_trace -I ../ipc/ instrumentation.cpp ../compressors/CompressorProcess.cpp ../ipc/MESSAGE_QUEUE.cpp ../ipc/Pipe.cpp -o memoryTraceSeq ../stack_trace/stack_trace.cpp ../compressors/Output.cpp

memoryTraceConcurrent:$(DEP)
	$(CXX) -DWITH_PTHREADS -I ../include -I ../stack_trace -I ../ipc/ instrumentation.cpp ../compressors/CompressorProcess.cpp ../ipc/MESSAGE_QUEUE.cpp ../ipc/Pipe.cpp -o memoryTraceConcurrent ../stack_trace/stack_trace.cpp ../compressors/Output.cpp

programme_test:programme.test.cpp
	$(CXX) -rdynamic -o programme_test programme.test.cpp
clean:
	rm -rf *~ $(BIN) *.bsf *.bt *.xml *.txt
